package com.neuedu.outpatient01.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.outpatient01.entity.Medicalrecord;
import com.neuedu.outpatient01.mapper.MedicalrecordMapper;

@Transactional
@Service
public class MedicalrecordServiceImpl implements MedicalrecordService {

	@Autowired
	private MedicalrecordMapper dao;
	
	@Override
	public Medicalrecord inquireHomeInfromation(Medicalrecord m) {
		// TODO Auto-generated method stub
		return dao.inquireHomeInfromation(m);
	}
	@Override
	public int insertHomeInfromation(Medicalrecord m) {
		// TODO Auto-generated method stub
		return dao.insertHomeInfromation(m);
	}
	@Override
	public int updateHomeInfromation(Medicalrecord m) {
		// TODO Auto-generated method stub
		return dao.updateHomeInfromation(m);
	}
	@Override
	public Medicalrecord inquireHistory(String CaseNumber) {
		// TODO Auto-generated method stub
		return dao.inquireHistory(CaseNumber);
	}
}
